const a = [1,2,3];
for (var i in a) {
    if (i == 1) {
        break;
    }
    console.log(a[i]);
}